#!/bin/sh

version_h_file="version.h";
ver_id_file="ver.id";
ver_id_file_text=$(cat $ver_id_file);

for verno in $ver_id_file_text
 do
    #echo $verno 
    break
 done

datestamp=$(date +%Y.%m.%d_%H%M)
#echo Время сборки : $datestamp 


echo "// This file if for collecting build-time information." > $version_h_file
echo "// AUTOMATICALLY REBUILDED DURING BUILD PROCESS!" >> $version_h_file
echo "// DO NOT INCLUDE ANY INFORMATION IN THIS FILE MANUALLY!!!" >> $version_h_file

echo "QString Version=\"$verno;  build time:$datestamp\";" >> $version_h_file


